home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / src / swtools / trubasic / rolldemos / demos / aboutTBI2.tru < prev    next >
Text File  |  1994-08-02  |  4KB  |  95 lines

  1. external
  2. ! more about True BASIC Demo (in 150 lines of code)
  3. sub text_intro3
  4. clear
  5. call lines(8)
  6. set color "magenta"
  7. let r=setfontsize(18)
  8. set text justify "left", "bottom"
  9. plot text, at .1,.87: "Some of True BASIC's features include:"
  10. set color "blue"
  11. let t=strwidth("Some of True BASIC's features include:")
  12. box area .1,.1+t,.84,.85
  13. box area 0,.01,0,1
  14. box area 0,1,.99,1
  15. box area .99,1,0,1
  16. box area 0,1,0,.01
  17. set color "white"
  18. call lines(2)
  19. print "            * resizable arrays"
  20. print "            * multi-line, user-defined functions"
  21. print "            * local and global variables"
  22. print "            * structured error handling"
  23. print "            * built-in 2D graphics transformations"
  24. print "            * matrix inverse, transpose, i/o and graphics"
  25. print "            * unlimited arrays"
  26. print "            * 14-digit floating-point accuracy"
  27. print "            * recursion"
  28. print "            * modules with public and private routines"
  29. print "            * pictures for encapsulating graphical objects"
  30. print "            * a wide range of graphics primitives"
  31. print "            * toolkits for 3D, Scientific, and Statistical graphs"
  32. call lines(2)
  33. print "  True BASIC is a fully-structured programming language with a direct"
  34. print "  interface to the X & GL  Libraries.  Programs are standard ASCII text"
  35. print "  files and may be run from source, compiled, or bound into stand-alone"
  36. print "  executables.  "
  37. print
  38. print "  True BASIC runs on Macs, MS-DOS compatibles, Amigas, and most UNIX"
  39. print "  workstations."
  40. call lines(8)
  41. print "                <click the left mouse button to continue>"
  42. end sub !---------------------------------------------------------------------
  43. sub text_intro4
  44. clear
  45. call lines(10)
  46. set color "magenta"
  47. set text justify "center","bottom"
  48. let r=setfontsize(18)
  49. plot text, at .5,.87: "Rolling Demo For True BASIC"
  50. set color "blue"
  51. let t=strwidth("Rolling Demo For True BASIC")
  52. box area .5-t/2,.5+t/2,.84,.85
  53. box area 0,.01,0,1
  54. box area 0,1,.99,1
  55. box area .99,1,0,1
  56. box area 0,1,0,.01
  57. set color "white"
  58. print
  59. print "  The rolling demo will let you selectively run the various demo "
  60. print "  programs.  These programs are run from the source code so there"
  61. print "  will be a brief pause before the graphics window opens."
  62. print
  63. print "  You can easily produce bound programs from True BASIC which will "
  64. print "  begin to execute immediately.  Copy the demo distribution to your"
  65. print "  hard drive and type ""make"" to produce executables for these demos."
  66. print
  67. print "  Note that for the Silicon Graphics you receive an X Windows and GL"
  68. print "  version of the language.  The RGB mode and Image Processing demos"
  69. print "  will only work with the GL version.  The other programs operate in"
  70. print "  a similar fashion with either version."
  71. print 
  72. print "  For each group of demos, a description of the following programs"
  73. print "  and the required user interaction can be found in the About file."
  74. print "  Most of the demos can be stopped with a mouse click or a keystroke."
  75. print
  76. print "  Depending on your window manager, you may be required to position"
  77. print "  the graphics window using your mouse." 
  78. print
  79. print "  At any point, you may exit the rolling demo and examine the BASIC"
  80. print "  source code for the demo programs.  Refer to the README files in"
  81. print "  the various directories for more information."
  82. print
  83. print "  To return to the original window, click in the background of the"
  84. print "  current button selection window."
  85. print
  86. call lines(3)
  87. print "                <click the left mouse button to continue>"
  88. end sub
  89. sub lines(n)   ! scroll down n lines
  90.    for j=1 to n
  91.         print
  92.    next j
  93. end sub
  94.  
  95.